package cn.car.domains.vo.sysUser;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "添加用户角色入参")
public class AddUserRoleReq {


    @Schema(description = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "角色id列表")
    @NotNull(message = "角色id列表不能为空")
    @Size(min = 1, message = "角色id列表必须需要一个元素")
    private List<Long> roleIds;
}
